package com.xhwl.logistics.entity.approval;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 审批进度
 * </p>
 *
 * @author lin.yang
 * @since 2024-01-19
 */
@Data
@ApiModel(value="ApprovalProgress对象", description="审批进度")
public class ApprovalProgress implements Serializable {


    @ApiModelProperty(value = "进度ID")
    @TableId(type=IdType.AUTO)
    private Integer progressId;

    @ApiModelProperty(value = "流程类型")
    @TableField("PROCESS_TYPE")
    private String processType;

    @ApiModelProperty(value = "所属节点ID")
    @TableField("CURRENT_NODE_ID")
    private String currentNodeId;

    @ApiModelProperty(value = "业务ID")
    @TableField("BUSINESS_ID")
    private String businessId;

    @ApiModelProperty(value = "流程状态 0:未开始  1、进行中  2、通过  3、驳回  4、结束")
    @TableField("PROCESS_STATUS")
    private Integer processStatus;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATED_BY")
    private String createdBy;

    @ApiModelProperty(value = "创建人名称")
    @TableField("CREATED_NAME")
    private String createdName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATED_TIME")
    private Date createdTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("LOGIC_DEL")
    private String logicDel;

    @ApiModelProperty(value = "审批意见描述")
    private String approvalDesc;


    @ApiModelProperty(value = "审批时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date approvalDate;


    @ApiModelProperty(value = "所属流程ID")
    @TableField("PROCESS_ID")
    private Integer processId;

    @ApiModelProperty(value = "审批人姓名")
    private String approvalUser;

    @ApiModelProperty(value = "审批人id")
    private String approvalId;


}
